package cn.haoheng.org.mapper;

<<<<<<< HEAD

import cn.haoheng.org.domain.Department;
=======
import cn.haoheng.org.domain.Depatment;
>>>>>>> cd5623cea15a20bb5abe36234dd14ce32c51e741
import cn.haoheng.org.query.DepartmentQuery;

import java.util.List;

<<<<<<< HEAD
/**
 * 部门数据库操作接口
 */
public interface DepartmentMapper {

    //保存一条记录
    void save(Department department);
    //修改一条记录
    void update(Department department);
    //删除一条记录
    void delete(Long id);
    //查询一条记录
    Department loadById(Long id);
    //查询所有记录
    List<Department> loadAll();
    //查询总条数
    Long queryCount(cn.haoheng.org.query.DepartmentQuery query);
    //查询当前页数据
    List<Department> queryData(cn.haoheng.org.query.DepartmentQuery query);
=======
public interface DepartmentMapper {
    //保存一条记录
    void save(Depatment department);
    //修改一条记录
    void update(Depatment department);
    //删除一条记录
    void delete(Long id);
    //查询一条记录
    Depatment loadById(Long id);
    //查询所有记录
    List<Depatment> loadAll();
    //查询总条数
    Long queryCount(DepartmentQuery query);
    //查询当前页数据
    List<Depatment> queryData(DepartmentQuery query);
>>>>>>> cd5623cea15a20bb5abe36234dd14ce32c51e741
}
